import api from "@/api/axiosApi"

const cart = {
	AddCart(url,params){//加入购物车
		return api.post(url,params)
	},
    CheckCart(url,params){//查询购物车
        return api.get(url,params)
    },
	UpdateCount(url,data){//商品数量加减
		return api.put(url,data)
	},
	SubmitOrder(url,params){//提交订单
	    return api.post(url,params)
	},
	DeleteCartFarm(url,params){
		return api.del(url,params)
	}
}

export default cart;